package com.ygl.service.impl;

import com.ygl.api.service.ItemDescService;
import com.ygl.common.api.BaseApiService;
import com.ygl.dao.ItemDescDao;
import com.ygl.entity.ItemDescEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author： ygl
 * @date： 2019/02/04
 * @Description：
 */
@RestController
public class ItemDescServiceImpl extends BaseApiService implements ItemDescService {
    @Autowired
    private ItemDescDao itemDescDao;

    @RequestMapping("/getItemDesc")
    public Map<String, Object> getItemDesc(@RequestParam("id") Long id) {
        ItemDescEntity itemDesc = itemDescDao.getItemDesc(id);
        return setResponseSuccessData(itemDesc);
    }

}
